<?php 
	header("Content-Type:text/html;charset=utf-8");
	$user_name = $_POST["userName"];
	$pwd = $_POST["pwd"];
	$tel = $_POST["tel"];
	// echo $user_name . " " . md5($pwd) . " ". $tel;

	include 'link.php';
	
	$sql = "INSERT INTO Users (user_name,user_pwd,tel) VALUES ('$user_name','$pwd','$tel')";
	$result = mysqli_query($link,$sql);
	// if(!$result) {
	// 	die("Fail to insert into table!");
	// }
	// echo "Insert successfully!";
	 header("Location:index.php");

	mysqli_close($link);
 ?>